<?php $this->placeholder('formHeadline')->set($this->getTranslation('Core Console'));?>

<script type="text/javascript">
$(document).ready(function() {
    $('.loadCommand').click(function() {
        var cmd = $(this).attr('title');
        $("#command").val(cmd);
        return false;
    });

 });
</script>

<form action="<?php echo $this->getBaseUrl(); ?>/admin/site/console" method="post" id='consoleCommand'><?php
    echo $this->formHidden('consoleSession', $this->consoleSession);
    echo $this->formText('command', $this->lastCommand, array('class' => 'med'));
    echo $this->formSubmit('getInfo', $this->getTranslation('Info'));
    echo $this->formSubmit('runCommand', $this->getTranslation('Run Command'));?>
</form>

<div class="formBox">
    <div id="results">
    <p class="dateTime"><?php echo $this->date;?></p>
    <h3><?php echo $this->command;?></h3><?php
    if ($this->results) {
        foreach ($this->results as $result) {?>
            <p><?php echo $result;?></p><?php
        }
    }?>
    </div>
</div>